<?php
class Silk_Zgb_Helper_Convert extends Mage_Core_Helper_Abstract
{
	public function getStore($idx, $val)
	{
		if($idx==0) return '';
		return Mage::helper('zgb/attribute')->getStoreCode($val);
	}

	public function getWebsite($idx, $val)
	{
		if($idx==0) return 'base';
		return Mage::helper('zgb/attribute')->getWebsiteCode($val);
	}

	public function getManufacturer($idx, $val)
	{
		if($idx!=0) return '';
		echo '----';
		return Mage::helper('zgb/attribute')->getManufacturerId($val);
	}
	public function getDealer($idx, $val)
	{
		if($idx==0) return '';
		return Mage::helper('zgb/attribute')->getDealerId($val);
	}
	public function getWarehouse($idx, $val)
	{
		if($idx==0) return '';
		return Mage::helper('zgb/attribute')->getWarehouseId($val);
	}
}